package com.wsx.ones.dubbo.provider;

import com.wsx.ones.api.ExampleService;
import com.wsx.ones.api.bean.ExampleRequest;
import com.wsx.ones.api.bean.ExampleResponse;

/**
 * @author wangshuaixin
 * @Title: com.wsx.ones.dubbo.provider.ExampleServiceImpl
 * @Description: TODO
 * @date 2019/04/19
 */
public class ExampleServiceImpl implements ExampleService {
    @Override
    public String hello(String name) {
        return "hello " + name;
    }

    @Override
    public ExampleResponse example(ExampleRequest request) {
        ExampleResponse response = new ExampleResponse();
        response.setName(request.getName());
        return response;
    }
}
